﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="CarRental.Account.Register" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1>RegisterUser_CreatedUser<%: Title %>.</h1>
        <h2>Use the form below to create a new account.</h2>
    </hgroup>
        <p class="message-info">
            Passwords are required to be a minimum of characters in length.
        </p>

        <p class="validation-summary-errors">
            <asp:Literal runat="server" ID="ErrorMessage" />
        </p>

        <fieldset>
            <legend>Registration Form</legend>
            <ol>
                <li>
                    <asp:Label runat="server" AssociatedControlID="tbUserName">User name</asp:Label>
                    <asp:TextBox runat="server" ID="tbUserName" />
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="tbUserName"
                        CssClass="field-validation-error" ErrorMessage="The user name field is required." ValidationGroup="validGrp" />
                </li>
                <li>
                    <asp:Label runat="server" AssociatedControlID="tbEmail">Email address</asp:Label>
                    <asp:TextBox runat="server" ID="tbEmail" TextMode="Email" />
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="tbEmail"
                        CssClass="field-validation-error" ErrorMessage="The email address field is required." ValidationGroup="va1" />
                </li>
                <li>
                    <asp:Label runat="server" AssociatedControlID="tbPassword">Password</asp:Label>
                    <asp:TextBox runat="server" ID="tbPassword" TextMode="Password" />
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="tbPassword"
                        CssClass="field-validation-error" ErrorMessage="The password field is required." ValidationGroup="validGrp" />
                </li>
                <li>
                    <asp:Label runat="server" AssociatedControlID="tbConfirmPassword">Confirm password</asp:Label>
                    <asp:TextBox runat="server" ID="tbConfirmPassword" TextMode="Password" />
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="tbConfirmPassword"
                        CssClass="field-validation-error" Display="Dynamic" ErrorMessage="The confirm password field is required." ValidationGroup="validGrp" />
                    <asp:CompareValidator runat="server" ControlToCompare="tbPassword" ControlToValidate="tbConfirmPassword"
                        CssClass="field-validation-error" Display="Dynamic" ErrorMessage="The password and confirmation password do not match." />
                </li>
                <li>
                    <asp:Label ID="lblAddress" runat="server" AssociatedControlID="tbAddress">Address</asp:Label>
                    <asp:TextBox runat="server" ID="tbAddress" />
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="tbAddress"
                        CssClass="field-validation-error" ErrorMessage="The address field is required." ValidationGroup="validGrp" />
                </li>
                <li>
                    <asp:Label ID="lblContactNo" runat="server" AssociatedControlID="tbContactNo">Contact Number</asp:Label>
                    <asp:TextBox runat="server" ID="tbContactNo" />
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="tbContactNo"
                        CssClass="field-validation-error" ErrorMessage="The contact number field is required." ValidationGroup="va1" />
                </li>
                <li>
                    <asp:Label ID="lblUserType" runat="server" AssociatedControlID="tbContactNo">User Type</asp:Label>
                    <asp:DropDownList ID="ddlUserType" runat="server" Width="200px" Height="25px"></asp:DropDownList>
                </li>
                 <li>
                    <asp:Label ID="lblRemark" runat="server" AssociatedControlID="tbRemark">Remark</asp:Label>
                    <asp:TextBox runat="server" ID="tbRemark" TextMode="MultiLine" Height="100px" Width="300px" />
                </li>
            </ol>
            <asp:Button runat="server" ID="btnRegister" Text="Register" OnClick="btnRegister_Click" ValidationGroup="validGrp" />
        </fieldset>
</asp:Content>
